<?php
/**
 * Comments.php
 *
 * @category    Madoqua
 * @package     Module
 * @subpackage  BlogAdmin
 */

/** base class*/
require_once 'Madoqua/Form.php';

/**
 * BlogAdmin_Settings_Comments
 *
 * @category    Madoqua
 * @package     Module
 * @subpackage  BlogAdmin
 * 
 * @todo make akismet un/pass conditional
 */
class BlogAdmin_Settings_Comments extends Madoqua_Form
{
    /**
     * constructor
     */
    public function __construct() {
        parent::__construct();

        $this->addElement('checkbox', 'allow_openid', array(
            'label' => 'Allow comments with an openId identifier',
            'required' => false,
            'validators' => array(
            )
        ));
        //autoaccept?        
        
        $this->addElement('checkbox', 'autoaccept', array(
            'label' => 'Accept all comments (use at own risk)',
            'required' => false,
            'validators' => array(
        )
        ));
        //autoaccept?

        $this->addElement('checkbox', 'useakismet', array(
            'label' => 'Scan comments for spam using Akismet',
            'required' => false,
            'validators' => array(
        )
        ));
        //use akismet?

        $this->addElement('text', 'akismetkey', array(
            'label' => 'Akismet API key',
            'required' => false,
            'validators' => array(
        array('stringLength', false, array(1, 255))
        )
        ));
        //akismet api key
        
        $this->addElement('submit', 'submit', array(
            'value' => 'Submit'
        ));
        //submit        

    }
}